import 'package:enterprise_v6_app/app/core/core.dart';

enum EmergencyResourceDetailPageType {
  expert,
  goods,

  /// 应急队伍
  team,

  /// 敏感目标
  target,

  /// 周边资源
  nearby,

  /// 应急处置卡
  card,
  ;

  String get toChinese {
    switch (this) {
      case expert:
        return '应急专家';
      case team:
        return '应急队伍';
      case target:
        return '敏感目标';
      case nearby:
        return '周边资源';
      case card:
        return '应急处置卡';
      case goods:
        return '应急物资';
    }
  }

  static const basicInfo = Tab(text: '基本信息');
  static const memberInfo = Tab(text: '队员信息');
  static const assessmentRecord = Tab(text: '评估记录');

  List<Tab> get tabs {
    switch (this) {
      case card:
        return const [basicInfo];
      case team:
        return const [basicInfo, memberInfo, assessmentRecord];
      default:
        return const [basicInfo, assessmentRecord];
    }
  }
}
